package com.putter.mapper;

import com.putter.pojo.Computerroom;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ComputerroomMapper {
    /**
     * 添加
     * @param computerroom
     * @return
     */
    public int insert(Computerroom computerroom);

    /**
     * 修改
     * @param computerroom
     * @return
     */
    public int update(Computerroom computerroom);

    /**
     * 删除
     * @param roomId
     * @return
     */
    public int delete(int roomId);

    /**
     * 总记录数
     * @return
     */
    public int count(@Param("manager") String manager);

    /**
     * 分页查询
     * @param pageBegin
     * @param pageSize
     * @param manager 机房管理员
     * @return
     */
    public List<Computerroom> selectPageList(@Param("pageBegin") int pageBegin,
                                             @Param("pageSize") int pageSize,
                                             @Param("manager") String manager);

    /**
     * 详情
     * @param roomId 根据id
     * @return
     */
    public int detail(int roomId);
}
